package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.entity.App;
import com.yh.merchant.dto.AppDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: HWW
 * @Date: 2021/8/2323:21
 * @Desc:
 */
@Mapper
public interface AppConvert {
    AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

    AppDTO entity2dto(App entity);

    App dto2entity(AppDTO dto);

    List<AppDTO> listentity2dto(List<App> appList);

    List<App> dtoList2entityList(List<AppDTO> appDTOList);


}
